package com.jvyou.thread.d02instance;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/30 9:31
 * @Description 使用 Lambda 实现线程
 */
public class LambdaThread {

    public static void main(String[] args) {
        new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println(Thread.currentThread().getName() + ": " + i);
            }
        }, "线程1").start();
    }
}
